package p270jp.pxv.android.activity;

import android.animation.Animator;
import android.animation.ObjectAnimator;
import android.app.Activity;
import android.content.ComponentCallbacks;
import android.content.Context;
import android.content.Intent;
import android.content.res.Configuration;
import android.graphics.drawable.Drawable;
import android.os.Bundle;
import android.text.TextUtils;
import android.util.TypedValue;
import android.view.Menu;
import android.view.MenuItem;
import android.view.ViewGroup;
import android.view.ViewTreeObserver;
import android.webkit.JavascriptInterface;
import android.widget.TextView;
import android.widget.Toast;
import androidx.activity.ComponentActivity;
import androidx.coordinatorlayout.widget.CoordinatorLayout;
import androidx.core.widget.NestedScrollView;
import androidx.databinding.DataBindingUtil;
import androidx.databinding.ViewDataBinding;
import androidx.fragment.app.FragmentContainerView;
import androidx.fragment.app.FragmentManager;
import androidx.lifecycle.ViewModelLazy;
import androidx.lifecycle.ViewModelProvider;
import androidx.lifecycle.ViewModelStore;
import com.google.android.gms.ads.C2047a;
import com.google.android.material.bottomsheet.BottomSheetBehavior;
import java.io.Serializable;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
import java.util.Map;
import java.util.Objects;
import p013ad.Consumer;
import p014ae.AbstractActivityC0069e2;
import p014ae.C0064d6;
import p014ae.C0072e6;
import p014ae.C0077f6;
import p014ae.C0086g6;
import p014ae.C0089h6;
import p014ae.C0135p4;
import p014ae.C0147r4;
import p014ae.C0160t5;
import p014ae.C0168u5;
import p014ae.C0182x5;
import p014ae.C0190y4;
import p014ae.C0199z4;
import p014ae.View$OnClickListenerC0050b;
import p014ae.View$OnClickListenerC0054c;
import p014ae.View$OnClickListenerC0158t;
import p014ae.View$OnClickListenerC0163u;
import p014ae.ViewTreeObserver$OnGlobalLayoutListenerC0200z5;
import p041ba.C1048a;
import p046bf.PixivAppUserAgents;
import p047bg.C1124a;
import p056bp.C1140c;
import p064c6.Preconditions;
import p071cd.Functions;
import p089d.C2419a;
import p120e4.WebViewAssetLoader;
import p134ei.AnalyticsScreenName;
import p134ei.PixivAnalytics;
import p144f1.C3017s;
import p159fi.FirebaseEventLogger;
import p165fo.C3114c;
import p165fo.Subscribe;
import p184gi.AnalyticsParameter;
import p184gi.ImpDetailEvent;
import p184gi.NovelViewerEvent;
import p187gl.C3369r;
import p187gl.PixivRequest;
import p189gn.AbstractC3435a;
import p189gn.AbstractC3446l;
import p210hh.PixivAccountManager;
import p211hi.FirebaseAnalyticsAction;
import p216hn.DefaultConstructorMarker;
import p216hn.Lambda;
import p216hn.Reflection;
import p270jp.pxv.android.R;
import p270jp.pxv.android.activity.NovelTextActivity;
import p270jp.pxv.android.comment.presentation.flux.CommentInputActionCreator;
import p270jp.pxv.android.comment.presentation.flux.CommentInputStore;
import p270jp.pxv.android.commonObjects.model.PixivComment;
import p270jp.pxv.android.event.EventNone;
import p270jp.pxv.android.event.RemoveCommentConfirmedEvent;
import p270jp.pxv.android.event.RemoveCommentEvent;
import p270jp.pxv.android.event.ShareWorkEvent;
import p270jp.pxv.android.event.ShowCommentInputEvent;
import p270jp.pxv.android.event.ShowCommentListEvent;
import p270jp.pxv.android.event.ShowNovelChapterEvent;
import p270jp.pxv.android.event.ShowNovelInfoEvent;
import p270jp.pxv.android.event.UpdateFollowEvent;
import p270jp.pxv.android.event.UpdateMuteEvent;
import p270jp.pxv.android.legacy.analytics.firebase.model.ComponentVia;
import p270jp.pxv.android.legacy.event.ShowMuteSettingEvent;
import p270jp.pxv.android.legacy.model.GoogleNg;
import p270jp.pxv.android.legacy.model.PixivNovel;
import p270jp.pxv.android.legacy.model.PixivUser;
import p270jp.pxv.android.legacy.model.PixivWork;
import p270jp.pxv.android.model.PixivUserPreview;
import p270jp.pxv.android.novelText.domain.model.Chapter;
import p270jp.pxv.android.novelText.presentation.flux.NovelTextActionCreator;
import p270jp.pxv.android.novelText.presentation.flux.NovelTextStore;
import p270jp.pxv.android.response.PixivResponse;
import p270jp.pxv.android.view.DetailBottomBarView;
import p270jp.pxv.android.view.NovelSettingView;
import p274k2.ContextCompat;
import p285kf.CommentInputEvent;
import p314lg.ActivityNovelTextBinding;
import p325m0.MutabilityOwnership;
import p346ml.MyWorkService;
import p347mm.AccountUtils;
import p347mm.C4864c;
import p347mm.MuteManager;
import p350mp.Timber;
import p363nb.C4929j;
import p370ni.InfoType;
import p374nm.C5410r;
import p436q6.C5768b;
import p445qf.C5830a;
import p449qk.C5846e;
import p449qk.Content;
import p449qk.NovelInfo;
import p449qk.NovelViewerMessage;
import p449qk.ScrollInfo;
import p449qk.UiState;
import p472rk.NovelViewerUrlService;
import p498sk.NovelViewerSettings;
import p524tk.NovelTextAction;
import p547uh.ChapterDialogFragment;
import p569vd.C6830b;
import p569vd.C6832d;
import p579vo.Qualifier;
import p603wm.AbstractC6949c;
import p603wm.Tuples;
import p603wm.Unit;
import p639y6.C7292h;
import p639y6.C7296l;
import p639y6.C7297m;
import p639y6.C7301s;
import p645yc.AndroidSchedulers;
import p665z6.C7456k;
import p665z6.C7458m;
import p665z6.C7462q;
import p671zc.CompositeDisposable;
import p671zc.Disposable;

/* compiled from: NovelTextActivity.kt */
/* renamed from: jp.pxv.android.activity.NovelTextActivity */
/* loaded from: classes2.dex */
public final class NovelTextActivity extends AbstractActivityC0069e2 {

    /* renamed from: z0 */
    public static final C4035a f18449z0 = new C4035a(null);

    /* renamed from: c0 */
    public ActivityNovelTextBinding f18451c0;

    /* renamed from: d0 */
    public long f18452d0;

    /* renamed from: e0 */
    public PixivNovel f18453e0;

    /* renamed from: f0 */
    public boolean f18454f0;

    /* renamed from: g0 */
    public boolean f18455g0;

    /* renamed from: h0 */
    public boolean f18456h0;

    /* renamed from: i0 */
    public BottomSheetBehavior<?> f18457i0;

    /* renamed from: j0 */
    public ViewTreeObserver.OnGlobalLayoutListener f18458j0;

    /* renamed from: k0 */
    public ViewTreeObserver.OnGlobalLayoutListener f18459k0;

    /* renamed from: m0 */
    public boolean f18461m0;

    /* renamed from: n0 */
    public boolean f18462n0;

    /* renamed from: o0 */
    public C5410r f18463o0;

    /* renamed from: b0 */
    public final AnalyticsScreenName f18450b0 = AnalyticsScreenName.NOVEL_DETAIL;

    /* renamed from: l0 */
    public final CompositeDisposable f18460l0 = new CompositeDisposable();

    /* renamed from: p0 */
    public final AbstractC6949c f18464p0 = Preconditions.m9802P(1, new C4039e(this, null, null));

    /* renamed from: q0 */
    public final AbstractC6949c f18465q0 = Preconditions.m9802P(1, new C4040f(this, null, null));

    /* renamed from: r0 */
    public final AbstractC6949c f18466r0 = Preconditions.m9802P(1, new C4041g(this, null, null));

    /* renamed from: s0 */
    public final AbstractC6949c f18467s0 = Preconditions.m9802P(1, new C4042h(this, null, null));

    /* renamed from: t0 */
    public final AbstractC6949c f18468t0 = new ViewModelLazy(Reflection.m5499a(NovelTextActionCreator.class), new C4046l(this), new C4045k(this));

    /* renamed from: u0 */
    public final AbstractC6949c f18469u0 = new ViewModelLazy(Reflection.m5499a(NovelTextStore.class), new C4048n(this), new C4047m(this));

    /* renamed from: v0 */
    public final AbstractC6949c f18470v0 = new ViewModelLazy(Reflection.m5499a(CommentInputActionCreator.class), new C4050p(this), new C4049o(this));

    /* renamed from: w0 */
    public final AbstractC6949c f18471w0 = new ViewModelLazy(Reflection.m5499a(CommentInputStore.class), new C4052r(this), new C4051q(this));

    /* renamed from: x0 */
    public final AbstractC6949c f18472x0 = Preconditions.m9801Q(new C4043i(this, "VIA"));

    /* renamed from: y0 */
    public final AbstractC6949c f18473y0 = Preconditions.m9801Q(new C4044j(this, "PREVIOUS_SCREEN"));

    /* compiled from: NovelTextActivity.kt */
    /* renamed from: jp.pxv.android.activity.NovelTextActivity$a */
    /* loaded from: classes2.dex */
    public static final class C4035a {
        public C4035a(DefaultConstructorMarker eVar) {
        }

        /* renamed from: b */
        public static Intent m4778b(C4035a aVar, Context context, long j, AnalyticsScreenName cVar, int i) {
            Intent intent = new Intent(context, NovelTextActivity.class);
            intent.putExtra("NOVEL_ID", j);
            intent.putExtra("PREVIOUS_SCREEN", (Serializable) null);
            return intent;
        }

        /* renamed from: a */
        public final Intent m4779a(Context context, PixivNovel pixivNovel, ComponentVia componentVia, AnalyticsScreenName cVar) {
            MutabilityOwnership.m3745m(context, "context");
            MutabilityOwnership.m3745m(pixivNovel, "novel");
            Intent intent = new Intent(context, NovelTextActivity.class);
            intent.putExtra("NOVEL_ID", pixivNovel.f19079id);
            intent.putExtra("NOVEL", pixivNovel);
            intent.putExtra("VIA", componentVia);
            intent.putExtra("PREVIOUS_SCREEN", cVar);
            return intent;
        }
    }

    /* compiled from: NovelTextActivity.kt */
    /* renamed from: jp.pxv.android.activity.NovelTextActivity$b */
    /* loaded from: classes2.dex */
    public static final class C4036b implements Animator.AnimatorListener {
        public C4036b() {
        }

        @Override // android.animation.Animator.AnimatorListener
        public void onAnimationCancel(Animator animator) {
            MutabilityOwnership.m3745m(animator, "animation");
        }

        @Override // android.animation.Animator.AnimatorListener
        public void onAnimationEnd(Animator animator) {
            MutabilityOwnership.m3745m(animator, "animation");
            ActivityNovelTextBinding p0Var = NovelTextActivity.this.f18451c0;
            if (p0Var != null) {
                NovelSettingView novelSettingView = p0Var.f22080E;
                MutabilityOwnership.m3746l(novelSettingView, "binding.novelSettingView");
                novelSettingView.setVisibility(8);
                NovelTextActivity.this.f18455g0 = false;
                return;
            }
            MutabilityOwnership.m3737u("binding");
            throw null;
        }

        @Override // android.animation.Animator.AnimatorListener
        public void onAnimationRepeat(Animator animator) {
            MutabilityOwnership.m3745m(animator, "animation");
        }

        @Override // android.animation.Animator.AnimatorListener
        public void onAnimationStart(Animator animator) {
            MutabilityOwnership.m3745m(animator, "animation");
        }
    }

    /* compiled from: NovelTextActivity.kt */
    /* renamed from: jp.pxv.android.activity.NovelTextActivity$c */
    /* loaded from: classes2.dex */
    public static final class C4037c extends Lambda implements AbstractC3446l<C5830a<? extends CommentInputEvent>, Unit> {
        public C4037c() {
            super(1);
        }

        @Override // p189gn.AbstractC3446l
        public Unit invoke(C5830a<? extends CommentInputEvent> aVar) {
            C5830a<? extends CommentInputEvent> aVar2 = aVar;
            MutabilityOwnership.m3745m(aVar2, "event");
            CommentInputEvent eVar = (CommentInputEvent) aVar2.m2791a();
            if (eVar != null) {
                NovelTextActivity novelTextActivity = NovelTextActivity.this;
                if (MutabilityOwnership.m3749h(eVar, CommentInputEvent.C4534b.f20351a)) {
                    C4035a aVar3 = NovelTextActivity.f18449z0;
                    novelTextActivity.m4790n1();
                } else if (eVar instanceof CommentInputEvent.C4533a) {
                    C4035a aVar4 = NovelTextActivity.f18449z0;
                    novelTextActivity.m4783u1();
                    novelTextActivity.m4790n1();
                } else if (eVar instanceof CommentInputEvent.C4535c) {
                    C4035a aVar5 = NovelTextActivity.f18449z0;
                    novelTextActivity.m4783u1();
                }
            }
            return Unit.f29503a;
        }
    }

    /* compiled from: NovelTextActivity.kt */
    /* renamed from: jp.pxv.android.activity.NovelTextActivity$d */
    /* loaded from: classes2.dex */
    public static final class ViewTreeObserver$OnGlobalLayoutListenerC4038d implements ViewTreeObserver.OnGlobalLayoutListener {
        public ViewTreeObserver$OnGlobalLayoutListenerC4038d() {
        }

        @Override // android.view.ViewTreeObserver.OnGlobalLayoutListener
        public void onGlobalLayout() {
            ActivityNovelTextBinding p0Var = NovelTextActivity.this.f18451c0;
            if (p0Var != null) {
                p0Var.f2666e.getViewTreeObserver().removeOnGlobalLayoutListener(this);
                NovelTextActivity.this.m4786r1();
                return;
            }
            MutabilityOwnership.m3737u("binding");
            throw null;
        }
    }

    /* compiled from: ComponentCallbackExt.kt */
    /* renamed from: jp.pxv.android.activity.NovelTextActivity$e */
    /* loaded from: classes2.dex */
    public static final class C4039e extends Lambda implements AbstractC3435a<NovelViewerSettings> {

        /* renamed from: a */
        public final /* synthetic */ ComponentCallbacks f18477a;

        /* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
        public C4039e(ComponentCallbacks componentCallbacks, Qualifier aVar, AbstractC3435a aVar2) {
            super(0);
            this.f18477a = componentCallbacks;
        }

        /* JADX WARN: Type inference failed for: r0v4, types: [java.lang.Object, sk.a] */
        @Override // p189gn.AbstractC3435a
        public final NovelViewerSettings invoke() {
            return C1124a.m10173s(this.f18477a).f24118a.m920a().m621a(Reflection.m5499a(NovelViewerSettings.class), null, null);
        }
    }

    /* compiled from: ComponentCallbackExt.kt */
    /* renamed from: jp.pxv.android.activity.NovelTextActivity$f */
    /* loaded from: classes2.dex */
    public static final class C4040f extends Lambda implements AbstractC3435a<NovelViewerUrlService> {

        /* renamed from: a */
        public final /* synthetic */ ComponentCallbacks f18478a;

        /* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
        public C4040f(ComponentCallbacks componentCallbacks, Qualifier aVar, AbstractC3435a aVar2) {
            super(0);
            this.f18478a = componentCallbacks;
        }

        /* JADX WARN: Type inference failed for: r0v4, types: [rk.a, java.lang.Object] */
        @Override // p189gn.AbstractC3435a
        public final NovelViewerUrlService invoke() {
            return C1124a.m10173s(this.f18478a).f24118a.m920a().m621a(Reflection.m5499a(NovelViewerUrlService.class), null, null);
        }
    }

    /* compiled from: ComponentCallbackExt.kt */
    /* renamed from: jp.pxv.android.activity.NovelTextActivity$g */
    /* loaded from: classes2.dex */
    public static final class C4041g extends Lambda implements AbstractC3435a<MyWorkService> {

        /* renamed from: a */
        public final /* synthetic */ ComponentCallbacks f18479a;

        /* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
        public C4041g(ComponentCallbacks componentCallbacks, Qualifier aVar, AbstractC3435a aVar2) {
            super(0);
            this.f18479a = componentCallbacks;
        }

        /* JADX WARN: Type inference failed for: r0v4, types: [ml.a, java.lang.Object] */
        @Override // p189gn.AbstractC3435a
        public final MyWorkService invoke() {
            return C1124a.m10173s(this.f18479a).f24118a.m920a().m621a(Reflection.m5499a(MyWorkService.class), null, null);
        }
    }

    /* compiled from: ComponentCallbackExt.kt */
    /* renamed from: jp.pxv.android.activity.NovelTextActivity$h */
    /* loaded from: classes2.dex */
    public static final class C4042h extends Lambda implements AbstractC3435a<PixivAppUserAgents> {

        /* renamed from: a */
        public final /* synthetic */ ComponentCallbacks f18480a;

        /* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
        public C4042h(ComponentCallbacks componentCallbacks, Qualifier aVar, AbstractC3435a aVar2) {
            super(0);
            this.f18480a = componentCallbacks;
        }

        /* JADX WARN: Type inference failed for: r0v4, types: [bf.e, java.lang.Object] */
        @Override // p189gn.AbstractC3435a
        public final PixivAppUserAgents invoke() {
            return C1124a.m10173s(this.f18480a).f24118a.m920a().m621a(Reflection.m5499a(PixivAppUserAgents.class), null, null);
        }
    }

    /* compiled from: ActivityExtension.kt */
    /* renamed from: jp.pxv.android.activity.NovelTextActivity$i */
    /* loaded from: classes2.dex */
    public static final class C4043i extends Lambda implements AbstractC3435a<ComponentVia> {

        /* renamed from: a */
        public final /* synthetic */ Activity f18481a;

        /* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
        public C4043i(Activity activity, String str) {
            super(0);
            this.f18481a = activity;
        }

        @Override // p189gn.AbstractC3435a
        public final ComponentVia invoke() {
            Bundle extras = this.f18481a.getIntent().getExtras();
            if (extras != null) {
                return (ComponentVia) extras.get("VIA");
            }
            throw new IllegalArgumentException("Required value was null.".toString());
        }
    }

    /* compiled from: ActivityExtension.kt */
    /* renamed from: jp.pxv.android.activity.NovelTextActivity$j */
    /* loaded from: classes2.dex */
    public static final class C4044j extends Lambda implements AbstractC3435a<AnalyticsScreenName> {

        /* renamed from: a */
        public final /* synthetic */ Activity f18482a;

        /* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
        public C4044j(Activity activity, String str) {
            super(0);
            this.f18482a = activity;
        }

        @Override // p189gn.AbstractC3435a
        public final AnalyticsScreenName invoke() {
            Bundle extras = this.f18482a.getIntent().getExtras();
            if (extras != null) {
                return (AnalyticsScreenName) extras.get("PREVIOUS_SCREEN");
            }
            throw new IllegalArgumentException("Required value was null.".toString());
        }
    }

    /* compiled from: ActivityViewModelLazy.kt */
    /* renamed from: jp.pxv.android.activity.NovelTextActivity$k */
    /* loaded from: classes2.dex */
    public static final class C4045k extends Lambda implements AbstractC3435a<ViewModelProvider.AbstractC0728b> {

        /* renamed from: a */
        public final /* synthetic */ ComponentActivity f18483a;

        /* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
        public C4045k(ComponentActivity componentActivity) {
            super(0);
            this.f18483a = componentActivity;
        }

        @Override // p189gn.AbstractC3435a
        public ViewModelProvider.AbstractC0728b invoke() {
            ViewModelProvider.AbstractC0728b defaultViewModelProviderFactory = this.f18483a.getDefaultViewModelProviderFactory();
            MutabilityOwnership.m3746l(defaultViewModelProviderFactory, "defaultViewModelProviderFactory");
            return defaultViewModelProviderFactory;
        }
    }

    /* compiled from: ActivityViewModelLazy.kt */
    /* renamed from: jp.pxv.android.activity.NovelTextActivity$l */
    /* loaded from: classes2.dex */
    public static final class C4046l extends Lambda implements AbstractC3435a<ViewModelStore> {

        /* renamed from: a */
        public final /* synthetic */ ComponentActivity f18484a;

        /* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
        public C4046l(ComponentActivity componentActivity) {
            super(0);
            this.f18484a = componentActivity;
        }

        @Override // p189gn.AbstractC3435a
        public ViewModelStore invoke() {
            ViewModelStore viewModelStore = this.f18484a.getViewModelStore();
            MutabilityOwnership.m3746l(viewModelStore, "viewModelStore");
            return viewModelStore;
        }
    }

    /* compiled from: ActivityViewModelLazy.kt */
    /* renamed from: jp.pxv.android.activity.NovelTextActivity$m */
    /* loaded from: classes2.dex */
    public static final class C4047m extends Lambda implements AbstractC3435a<ViewModelProvider.AbstractC0728b> {

        /* renamed from: a */
        public final /* synthetic */ ComponentActivity f18485a;

        /* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
        public C4047m(ComponentActivity componentActivity) {
            super(0);
            this.f18485a = componentActivity;
        }

        @Override // p189gn.AbstractC3435a
        public ViewModelProvider.AbstractC0728b invoke() {
            ViewModelProvider.AbstractC0728b defaultViewModelProviderFactory = this.f18485a.getDefaultViewModelProviderFactory();
            MutabilityOwnership.m3746l(defaultViewModelProviderFactory, "defaultViewModelProviderFactory");
            return defaultViewModelProviderFactory;
        }
    }

    /* compiled from: ActivityViewModelLazy.kt */
    /* renamed from: jp.pxv.android.activity.NovelTextActivity$n */
    /* loaded from: classes2.dex */
    public static final class C4048n extends Lambda implements AbstractC3435a<ViewModelStore> {

        /* renamed from: a */
        public final /* synthetic */ ComponentActivity f18486a;

        /* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
        public C4048n(ComponentActivity componentActivity) {
            super(0);
            this.f18486a = componentActivity;
        }

        @Override // p189gn.AbstractC3435a
        public ViewModelStore invoke() {
            ViewModelStore viewModelStore = this.f18486a.getViewModelStore();
            MutabilityOwnership.m3746l(viewModelStore, "viewModelStore");
            return viewModelStore;
        }
    }

    /* compiled from: ActivityViewModelLazy.kt */
    /* renamed from: jp.pxv.android.activity.NovelTextActivity$o */
    /* loaded from: classes2.dex */
    public static final class C4049o extends Lambda implements AbstractC3435a<ViewModelProvider.AbstractC0728b> {

        /* renamed from: a */
        public final /* synthetic */ ComponentActivity f18487a;

        /* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
        public C4049o(ComponentActivity componentActivity) {
            super(0);
            this.f18487a = componentActivity;
        }

        @Override // p189gn.AbstractC3435a
        public ViewModelProvider.AbstractC0728b invoke() {
            ViewModelProvider.AbstractC0728b defaultViewModelProviderFactory = this.f18487a.getDefaultViewModelProviderFactory();
            MutabilityOwnership.m3746l(defaultViewModelProviderFactory, "defaultViewModelProviderFactory");
            return defaultViewModelProviderFactory;
        }
    }

    /* compiled from: ActivityViewModelLazy.kt */
    /* renamed from: jp.pxv.android.activity.NovelTextActivity$p */
    /* loaded from: classes2.dex */
    public static final class C4050p extends Lambda implements AbstractC3435a<ViewModelStore> {

        /* renamed from: a */
        public final /* synthetic */ ComponentActivity f18488a;

        /* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
        public C4050p(ComponentActivity componentActivity) {
            super(0);
            this.f18488a = componentActivity;
        }

        @Override // p189gn.AbstractC3435a
        public ViewModelStore invoke() {
            ViewModelStore viewModelStore = this.f18488a.getViewModelStore();
            MutabilityOwnership.m3746l(viewModelStore, "viewModelStore");
            return viewModelStore;
        }
    }

    /* compiled from: ActivityViewModelLazy.kt */
    /* renamed from: jp.pxv.android.activity.NovelTextActivity$q */
    /* loaded from: classes2.dex */
    public static final class C4051q extends Lambda implements AbstractC3435a<ViewModelProvider.AbstractC0728b> {

        /* renamed from: a */
        public final /* synthetic */ ComponentActivity f18489a;

        /* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
        public C4051q(ComponentActivity componentActivity) {
            super(0);
            this.f18489a = componentActivity;
        }

        @Override // p189gn.AbstractC3435a
        public ViewModelProvider.AbstractC0728b invoke() {
            ViewModelProvider.AbstractC0728b defaultViewModelProviderFactory = this.f18489a.getDefaultViewModelProviderFactory();
            MutabilityOwnership.m3746l(defaultViewModelProviderFactory, "defaultViewModelProviderFactory");
            return defaultViewModelProviderFactory;
        }
    }

    /* compiled from: ActivityViewModelLazy.kt */
    /* renamed from: jp.pxv.android.activity.NovelTextActivity$r */
    /* loaded from: classes2.dex */
    public static final class C4052r extends Lambda implements AbstractC3435a<ViewModelStore> {

        /* renamed from: a */
        public final /* synthetic */ ComponentActivity f18490a;

        /* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
        public C4052r(ComponentActivity componentActivity) {
            super(0);
            this.f18490a = componentActivity;
        }

        @Override // p189gn.AbstractC3435a
        public ViewModelStore invoke() {
            ViewModelStore viewModelStore = this.f18490a.getViewModelStore();
            MutabilityOwnership.m3746l(viewModelStore, "viewModelStore");
            return viewModelStore;
        }
    }

    /* renamed from: e1 */
    public static boolean m4799e1(NovelTextActivity novelTextActivity, MenuItem menuItem) {
        Integer num;
        MutabilityOwnership.m3745m(novelTextActivity, "this$0");
        MutabilityOwnership.m3745m(menuItem, "item");
        PixivNovel pixivNovel = novelTextActivity.f18453e0;
        if (pixivNovel == null) {
            return super.onOptionsItemSelected(menuItem);
        }
        int itemId = menuItem.getItemId();
        if (itemId == R.id.menu_marker) {
            if (novelTextActivity.m4791m1().f19277h == null) {
                Tuples<Integer, Integer> f = novelTextActivity.m4791m1().f19279j.m11091f();
                int intValue = (f == null || (num = f.f29493a) == null) ? 1 : num.intValue();
                if (novelTextActivity.f18454f0) {
                    Disposable m = PixivAccountManager.m5511e().m5513c().m970f(new C3369r(novelTextActivity.f18452d0, intValue)).m966j(AndroidSchedulers.m334a()).m963m(new Consumer(intValue) { // from class: ae.v5

                        /* renamed from: b */
                        public final /* synthetic */ int f626b;

                        {
                            this.f626b = r2;
                        }

                        @Override // p013ad.Consumer
                        /* renamed from: d */
                        public final void mo1150d(Object obj) {
                            NovelTextActivity novelTextActivity2 = NovelTextActivity.this;
                            int i = this.f626b;
                            PixivResponse pixivResponse = (PixivResponse) obj;
                            NovelTextActivity.C4035a aVar = NovelTextActivity.f18449z0;
                            MutabilityOwnership.m3745m(novelTextActivity2, "this$0");
                            novelTextActivity2.m4791m1().f19277h = Integer.valueOf(i);
                            novelTextActivity2.invalidateOptionsMenu();
                            String string = novelTextActivity2.getString(R.string.novel_marker_add_success);
                            MutabilityOwnership.m3746l(string, "getString(jp.pxv.android…novel_marker_add_success)");
                            String format = String.format(string, Arrays.copyOf(new Object[]{Integer.valueOf(i)}, 1));
                            MutabilityOwnership.m3746l(format, "java.lang.String.format(format, *args)");
                            Toast.makeText(novelTextActivity2.getApplicationContext(), format, 0).show();
                        }
                    }, C0182x5.f654b);
                    CompositeDisposable aVar = novelTextActivity.f18460l0;
                    MutabilityOwnership.m3744n(aVar, "compositeDisposable");
                    aVar.mo82c(m);
                }
            } else if (novelTextActivity.f18454f0) {
                Disposable m2 = PixivAccountManager.m5511e().m5513c().m970f(new C7462q(novelTextActivity.f18452d0, 5)).m966j(AndroidSchedulers.m334a()).m963m(new C0135p4(novelTextActivity, 4), C0199z4.f695d);
                CompositeDisposable aVar2 = novelTextActivity.f18460l0;
                MutabilityOwnership.m3744n(aVar2, "compositeDisposable");
                aVar2.mo82c(m2);
            }
        } else if (itemId == R.id.menu_save_image) {
            novelTextActivity.m4679S0("android.permission.WRITE_EXTERNAL_STORAGE", new C7297m(novelTextActivity, pixivNovel, 1));
        } else if (itemId == R.id.menu_share) {
            C3114c.m6284b().m6280f(new ShareWorkEvent(pixivNovel, novelTextActivity));
        } else if (itemId == R.id.menu_section) {
            List<Chapter> list = novelTextActivity.m4791m1().f19280k;
            if (!list.isEmpty()) {
                ChapterDialogFragment pVar = new ChapterDialogFragment();
                Object[] array = list.toArray(new Chapter[0]);
                Objects.requireNonNull(array, "null cannot be cast to non-null type kotlin.Array<T>");
                pVar.setArguments(C2419a.m7858f(new Tuples("CHAPTER_ARRAY", array)));
                pVar.show(novelTextActivity.m11131K0(), "chapter");
            }
        } else if (itemId == R.id.menu_setting) {
            if (!novelTextActivity.f18455g0) {
                ActivityNovelTextBinding p0Var = novelTextActivity.f18451c0;
                if (p0Var != null) {
                    C4864c.m3548a(p0Var.f22090x, 100);
                    ActivityNovelTextBinding p0Var2 = novelTextActivity.f18451c0;
                    if (p0Var2 != null) {
                        C4864c.m3548a(p0Var2.f22081F, 100);
                        novelTextActivity.f18455g0 = true;
                        ActivityNovelTextBinding p0Var3 = novelTextActivity.f18451c0;
                        if (p0Var3 != null) {
                            NovelSettingView novelSettingView = p0Var3.f22080E;
                            MutabilityOwnership.m3746l(novelSettingView, "binding.novelSettingView");
                            novelSettingView.setVisibility(0);
                            ActivityNovelTextBinding p0Var4 = novelTextActivity.f18451c0;
                            if (p0Var4 != null) {
                                ObjectAnimator ofFloat = ObjectAnimator.ofFloat(p0Var4.f22080E, "translationY", 0.0f);
                                ofFloat.setDuration(300L);
                                ofFloat.addListener(new C0089h6(novelTextActivity));
                                ofFloat.start();
                            } else {
                                MutabilityOwnership.m3737u("binding");
                                throw null;
                            }
                        } else {
                            MutabilityOwnership.m3737u("binding");
                            throw null;
                        }
                    } else {
                        MutabilityOwnership.m3737u("binding");
                        throw null;
                    }
                } else {
                    MutabilityOwnership.m3737u("binding");
                    throw null;
                }
            }
        } else if (itemId == R.id.menu_mute) {
            C3114c.m6284b().m6280f(new ShowMuteSettingEvent(pixivNovel));
        } else if (itemId == R.id.menu_report) {
            long j = novelTextActivity.f18452d0;
            Intent intent = new Intent(novelTextActivity, ReportNovelActivity.class);
            intent.putExtra("novel_id", j);
            novelTextActivity.startActivity(intent);
        } else if (itemId != R.id.menu_edit) {
            return super.onOptionsItemSelected(menuItem);
        } else {
            C1124a.m10166z(novelTextActivity, novelTextActivity.f18452d0);
        }
        return true;
    }

    /* renamed from: f1 */
    public static final void m4798f1(NovelTextActivity novelTextActivity, PixivNovel pixivNovel) {
        novelTextActivity.f18453e0 = pixivNovel;
        ActivityNovelTextBinding p0Var = novelTextActivity.f18451c0;
        if (p0Var != null) {
            p0Var.f22092z.setWork(pixivNovel);
            ActivityNovelTextBinding p0Var2 = novelTextActivity.f18451c0;
            if (p0Var2 != null) {
                p0Var2.f22092z.setAnalyticsParameter(new AnalyticsParameter(novelTextActivity.f18450b0, null, 0, 6));
                ActivityNovelTextBinding p0Var3 = novelTextActivity.f18451c0;
                if (p0Var3 != null) {
                    ViewGroup.LayoutParams layoutParams = p0Var3.f22083q.getLayoutParams();
                    Objects.requireNonNull(layoutParams, "null cannot be cast to non-null type androidx.coordinatorlayout.widget.CoordinatorLayout.LayoutParams");
                    ((CoordinatorLayout.C0570f) layoutParams).f2584c = 80;
                    ActivityNovelTextBinding p0Var4 = novelTextActivity.f18451c0;
                    if (p0Var4 != null) {
                        p0Var4.f22083q.setWork(pixivNovel);
                        ActivityNovelTextBinding p0Var5 = novelTextActivity.f18451c0;
                        if (p0Var5 != null) {
                            DetailBottomBarView detailBottomBarView = p0Var5.f22083q;
                            Context context = detailBottomBarView.getContext();
                            Object obj = ContextCompat.f19963a;
                            Drawable b = ContextCompat.C4472c.m4259b(context, R.drawable.action_detail);
                            Context context2 = detailBottomBarView.getContext();
                            MutabilityOwnership.m3745m(context2, "context");
                            TypedValue typedValue = new TypedValue();
                            if (context2.getTheme().resolveAttribute(R.attr.colorCharcoalIcon3, typedValue, true)) {
                                b.setTint(typedValue.data);
                                detailBottomBarView.f19478a.f22304q.setImageDrawable(b);
                                ActivityNovelTextBinding p0Var6 = novelTextActivity.f18451c0;
                                if (p0Var6 != null) {
                                    p0Var6.f22086t.setWork(pixivNovel);
                                    ActivityNovelTextBinding p0Var7 = novelTextActivity.f18451c0;
                                    if (p0Var7 != null) {
                                        p0Var7.f22086t.setOnHideIllustCaptionButtonClick(new View$OnClickListenerC0158t(novelTextActivity, 4));
                                        ActivityNovelTextBinding p0Var8 = novelTextActivity.f18451c0;
                                        if (p0Var8 != null) {
                                            p0Var8.f22087u.setNovel(pixivNovel);
                                            BottomSheetBehavior<?> bottomSheetBehavior = novelTextActivity.f18457i0;
                                            if (bottomSheetBehavior != null) {
                                                bottomSheetBehavior.m8701C(new p014ae.NovelTextActivity(novelTextActivity, pixivNovel));
                                                novelTextActivity.f18458j0 = new ViewTreeObserver$OnGlobalLayoutListenerC0200z5(novelTextActivity, 0);
                                                ActivityNovelTextBinding p0Var9 = novelTextActivity.f18451c0;
                                                if (p0Var9 != null) {
                                                    p0Var9.f22078C.getViewTreeObserver().addOnGlobalLayoutListener(novelTextActivity.f18458j0);
                                                    GoogleNg resolveGoogleNg = pixivNovel.resolveGoogleNg();
                                                    MutabilityOwnership.m3746l(resolveGoogleNg, "novel.resolveGoogleNg()");
                                                    novelTextActivity.m12145X0(resolveGoogleNg);
                                                    return;
                                                }
                                                MutabilityOwnership.m3737u("binding");
                                                throw null;
                                            }
                                            MutabilityOwnership.m3737u("novelCaptionViewBehavior");
                                            throw null;
                                        }
                                        MutabilityOwnership.m3737u("binding");
                                        throw null;
                                    }
                                    MutabilityOwnership.m3737u("binding");
                                    throw null;
                                }
                                MutabilityOwnership.m3737u("binding");
                                throw null;
                            }
                            throw new IllegalStateException("Charcoal Theme, もしくは Charcoal Bridge Theme を利用してください");
                        }
                        MutabilityOwnership.m3737u("binding");
                        throw null;
                    }
                    MutabilityOwnership.m3737u("binding");
                    throw null;
                }
                MutabilityOwnership.m3737u("binding");
                throw null;
            }
            MutabilityOwnership.m3737u("binding");
            throw null;
        }
        MutabilityOwnership.m3737u("binding");
        throw null;
    }

    /* renamed from: g1 */
    public static final void m4797g1(NovelTextActivity novelTextActivity) {
        novelTextActivity.m4794j1().f19267c.mo2437b(NovelTextAction.C6270f.f26844a);
        ActivityNovelTextBinding p0Var = novelTextActivity.f18451c0;
        if (p0Var != null) {
            p0Var.f22082G.loadData("<html></html>", "text/html", "utf-8");
            ActivityNovelTextBinding p0Var2 = novelTextActivity.f18451c0;
            if (p0Var2 != null) {
                p0Var2.f22077B.m4595d(InfoType.UNKNOWN_ERROR, new View$OnClickListenerC0054c(novelTextActivity, 3));
                ActivityNovelTextBinding p0Var3 = novelTextActivity.f18451c0;
                if (p0Var3 != null) {
                    p0Var3.f22092z.m8527k();
                } else {
                    MutabilityOwnership.m3737u("binding");
                    throw null;
                }
            } else {
                MutabilityOwnership.m3737u("binding");
                throw null;
            }
        } else {
            MutabilityOwnership.m3737u("binding");
            throw null;
        }
    }

    /* renamed from: h1 */
    public static final void m4796h1(NovelTextActivity novelTextActivity) {
        novelTextActivity.f18454f0 = true;
        ActivityNovelTextBinding p0Var = novelTextActivity.f18451c0;
        if (p0Var != null) {
            p0Var.f22092z.m8520r();
            novelTextActivity.invalidateOptionsMenu();
            return;
        }
        MutabilityOwnership.m3737u("binding");
        throw null;
    }

    /* renamed from: i1 */
    public final void m4795i1() {
        BottomSheetBehavior<?> bottomSheetBehavior = this.f18457i0;
        if (bottomSheetBehavior != null) {
            bottomSheetBehavior.m8698F(4);
        } else {
            MutabilityOwnership.m3737u("novelCaptionViewBehavior");
            throw null;
        }
    }

    /* renamed from: j1 */
    public final NovelTextActionCreator m4794j1() {
        return (NovelTextActionCreator) this.f18468t0.getValue();
    }

    /* renamed from: k1 */
    public final CommentInputActionCreator m4793k1() {
        return (CommentInputActionCreator) this.f18470v0.getValue();
    }

    /* renamed from: l1 */
    public final NovelViewerSettings m4792l1() {
        return (NovelViewerSettings) this.f18464p0.getValue();
    }

    /* renamed from: m1 */
    public final NovelTextStore m4791m1() {
        return (NovelTextStore) this.f18469u0.getValue();
    }

    /* renamed from: n1 */
    public final void m4790n1() {
        m4793k1().m4634d();
        ActivityNovelTextBinding p0Var = this.f18451c0;
        if (p0Var != null) {
            FragmentContainerView fragmentContainerView = p0Var.f22084r;
            MutabilityOwnership.m3746l(fragmentContainerView, "binding.commentInputBar");
            fragmentContainerView.setVisibility(8);
            return;
        }
        MutabilityOwnership.m3737u("binding");
        throw null;
    }

    /* renamed from: o1 */
    public final void m4789o1() {
        ActivityNovelTextBinding p0Var = this.f18451c0;
        if (p0Var != null) {
            C4864c.m3548a(p0Var.f22090x, 100);
            ActivityNovelTextBinding p0Var2 = this.f18451c0;
            if (p0Var2 != null) {
                C4864c.m3548a(p0Var2.f22083q, 100);
                ActivityNovelTextBinding p0Var3 = this.f18451c0;
                if (p0Var3 != null) {
                    p0Var3.f22092z.m8527k();
                } else {
                    MutabilityOwnership.m3737u("binding");
                    throw null;
                }
            } else {
                MutabilityOwnership.m3737u("binding");
                throw null;
            }
        } else {
            MutabilityOwnership.m3737u("binding");
            throw null;
        }
    }

    @Override // p270jp.pxv.android.activity.AbstractActivityC4151b, androidx.fragment.app.FragmentActivity, androidx.activity.ComponentActivity, android.app.Activity
    public void onActivityResult(int i, int i2, Intent intent) {
        if (i == 111) {
            m4783u1();
        }
        if (i == 109 && i2 == -1 && intent != null && intent.getBooleanExtra("result_key_should_show_mail_authorization", false)) {
            AccountUtils.m3550d(this, this.f18460l0);
        }
        super.onActivityResult(i, i2, intent);
    }

    @Override // p270jp.pxv.android.activity.AbstractActivityC4151b, androidx.activity.ComponentActivity, android.app.Activity
    public void onBackPressed() {
        ActivityNovelTextBinding p0Var = this.f18451c0;
        if (p0Var != null) {
            FragmentContainerView fragmentContainerView = p0Var.f22084r;
            MutabilityOwnership.m3746l(fragmentContainerView, "binding.commentInputBar");
            boolean z = true;
            if (fragmentContainerView.getVisibility() == 0) {
                m4790n1();
                return;
            }
            ActivityNovelTextBinding p0Var2 = this.f18451c0;
            if (p0Var2 != null) {
                NestedScrollView nestedScrollView = p0Var2.f22078C;
                MutabilityOwnership.m3746l(nestedScrollView, "binding.novelCaptionView");
                if (nestedScrollView.getVisibility() == 0) {
                    m4795i1();
                    return;
                }
                ActivityNovelTextBinding p0Var3 = this.f18451c0;
                if (p0Var3 != null) {
                    NovelSettingView novelSettingView = p0Var3.f22080E;
                    MutabilityOwnership.m3746l(novelSettingView, "binding.novelSettingView");
                    if (novelSettingView.getVisibility() != 0) {
                        z = false;
                    }
                    if (z) {
                        m4788p1();
                    } else {
                        super.onBackPressed();
                    }
                } else {
                    MutabilityOwnership.m3737u("binding");
                    throw null;
                }
            } else {
                MutabilityOwnership.m3737u("binding");
                throw null;
            }
        } else {
            MutabilityOwnership.m3737u("binding");
            throw null;
        }
    }

    @Override // p270jp.pxv.android.activity.AbstractActivityC4151b, p270jp.pxv.android.activity.BaseActivity, androidx.fragment.app.FragmentActivity, androidx.activity.ComponentActivity, p248j2.ActivityC3902g, android.app.Activity
    public void onCreate(Bundle bundle) {
        super.onCreate(bundle);
        ViewDataBinding d = DataBindingUtil.m11369d(this, R.layout.activity_novel_text);
        MutabilityOwnership.m3746l(d, "setContentView(this, R.layout.activity_novel_text)");
        this.f18451c0 = (ActivityNovelTextBinding) d;
        m4791m1().f19282m = bundle == null ? null : bundle.getString("SCROLL_STATE");
        ActivityNovelTextBinding p0Var = this.f18451c0;
        if (p0Var != null) {
            BottomSheetBehavior<?> y = BottomSheetBehavior.m8674y(p0Var.f22078C);
            MutabilityOwnership.m3746l(y, "from(binding.novelCaptionView)");
            this.f18457i0 = y;
            this.f18452d0 = getIntent().getLongExtra("NOVEL_ID", 0);
            ActivityNovelTextBinding p0Var2 = this.f18451c0;
            if (p0Var2 != null) {
                C1124a.m10196R(this, p0Var2.f22090x, "");
                ActivityNovelTextBinding p0Var3 = this.f18451c0;
                if (p0Var3 != null) {
                    p0Var3.f22090x.setOnMenuItemClickListener(new C5768b(this, 10));
                    ArrayList arrayList = new ArrayList();
                    arrayList.add(new WebViewAssetLoader.C2789c(((NovelViewerUrlService) this.f18465q0.getValue()).m2574c(), "/assets/", false, new WebViewAssetLoader.C2787a(this)));
                    WebViewAssetLoader aVar = new WebViewAssetLoader(arrayList);
                    ActivityNovelTextBinding p0Var4 = this.f18451c0;
                    if (p0Var4 != null) {
                        p0Var4.f22082G.getSettings().setJavaScriptEnabled(true);
                        ActivityNovelTextBinding p0Var5 = this.f18451c0;
                        if (p0Var5 != null) {
                            p0Var5.f22082G.getSettings().setDomStorageEnabled(true);
                            ActivityNovelTextBinding p0Var6 = this.f18451c0;
                            if (p0Var6 != null) {
                                p0Var6.f22082G.getSettings().setCacheMode(-1);
                                ActivityNovelTextBinding p0Var7 = this.f18451c0;
                                if (p0Var7 != null) {
                                    p0Var7.f22082G.getSettings().setUserAgentString(((PixivAppUserAgents) this.f18467s0.getValue()).f5004a);
                                    ActivityNovelTextBinding p0Var8 = this.f18451c0;
                                    if (p0Var8 != null) {
                                        p0Var8.f22082G.setWebViewClient(new C0064d6(this, aVar));
                                        ActivityNovelTextBinding p0Var9 = this.f18451c0;
                                        if (p0Var9 != null) {
                                            p0Var9.f22082G.addJavascriptInterface(this, "android");
                                            ActivityNovelTextBinding p0Var10 = this.f18451c0;
                                            if (p0Var10 != null) {
                                                p0Var10.f22080E.setOnFontSizeChangedListener(new C1048a(this, 2));
                                                ActivityNovelTextBinding p0Var11 = this.f18451c0;
                                                if (p0Var11 != null) {
                                                    p0Var11.f22080E.setOnLineSpaceChangedListener(new C7292h(this, 5));
                                                    ActivityNovelTextBinding p0Var12 = this.f18451c0;
                                                    if (p0Var12 != null) {
                                                        p0Var12.f22080E.setOnFontChangedListener(new C7301s(this, 5));
                                                        ActivityNovelTextBinding p0Var13 = this.f18451c0;
                                                        if (p0Var13 != null) {
                                                            p0Var13.f22080E.setOnColorChangedListener(new C7296l(this, 7));
                                                            Configuration configuration = getResources().getConfiguration();
                                                            MutabilityOwnership.m3746l(configuration, "resources.configuration");
                                                            boolean z = (configuration.uiMode & 48) == 32;
                                                            NovelViewerSettings l1 = m4792l1();
                                                            if (z != l1.f26228a.getBoolean("novel_viewer_last_night_mode", false)) {
                                                                C1140c.m10133f(l1.f26228a, "novel_background_color_name", z ? "black" : "white");
                                                                C2047a.m8799c(l1.f26228a, "novel_viewer_last_night_mode", z);
                                                            }
                                                            float f = m4792l1().f26228a.getFloat("novel_font_size", 16.0f);
                                                            ActivityNovelTextBinding p0Var14 = this.f18451c0;
                                                            if (p0Var14 != null) {
                                                                p0Var14.f22080E.setFontSize(f);
                                                                float f2 = m4792l1().f26228a.getFloat("novel_line_space", 1.75f);
                                                                ActivityNovelTextBinding p0Var15 = this.f18451c0;
                                                                if (p0Var15 != null) {
                                                                    p0Var15.f22080E.setLineSpace(f2);
                                                                    String b = m4792l1().m2430b();
                                                                    ActivityNovelTextBinding p0Var16 = this.f18451c0;
                                                                    if (p0Var16 != null) {
                                                                        p0Var16.f22080E.setFontType(b);
                                                                        String a = m4792l1().m2431a();
                                                                        int hashCode = a.hashCode();
                                                                        int i = R.color.novel_page_counter_white;
                                                                        if (hashCode != 93818879) {
                                                                            if (hashCode != 109324790) {
                                                                                if (hashCode == 113101865) {
                                                                                    a.equals("white");
                                                                                }
                                                                            } else if (a.equals("sepia")) {
                                                                                i = R.color.novel_page_counter_sepia;
                                                                            }
                                                                        } else if (a.equals("black")) {
                                                                            i = R.color.novel_page_counter_black;
                                                                        }
                                                                        m4782v1(i);
                                                                        ActivityNovelTextBinding p0Var17 = this.f18451c0;
                                                                        if (p0Var17 != null) {
                                                                            p0Var17.f22080E.setColor(a);
                                                                            this.f345H = false;
                                                                            m4791m1().f19278i.mo2790a(this, new C0077f6(this));
                                                                            Preconditions.m9798T(m4791m1().f19279j, this, new C0086g6(this));
                                                                            Preconditions.m9798T(((CommentInputStore) this.f18471w0.getValue()).f18924l, this, new C0072e6(this));
                                                                            ActivityNovelTextBinding p0Var18 = this.f18451c0;
                                                                            if (p0Var18 != null) {
                                                                                p0Var18.f22077B.m4595d(InfoType.LOADING, null);
                                                                                ActivityNovelTextBinding p0Var19 = this.f18451c0;
                                                                                if (p0Var19 != null) {
                                                                                    DetailBottomBarView detailBottomBarView = p0Var19.f22083q;
                                                                                    TextView textView = detailBottomBarView.f19478a.f22306s;
                                                                                    textView.setMaxLines(1);
                                                                                    textView.setEllipsize(TextUtils.TruncateAt.END);
                                                                                    textView.setPadding(textView.getPaddingLeft(), textView.getPaddingTop(), (int) detailBottomBarView.getResources().getDimension(R.dimen.padding_for_floating_action_button), textView.getPaddingBottom());
                                                                                    ActivityNovelTextBinding p0Var20 = this.f18451c0;
                                                                                    if (p0Var20 != null) {
                                                                                        p0Var20.f22083q.setOnHideIllustCaptionButtonClick(new View$OnClickListenerC0163u(this, 3));
                                                                                        ActivityNovelTextBinding p0Var21 = this.f18451c0;
                                                                                        if (p0Var21 != null) {
                                                                                            p0Var21.f22079D.setOnClickListener(new View$OnClickListenerC0050b(this, 5));
                                                                                            Preconditions.m9798T(((CommentInputStore) this.f18471w0.getValue()).f18920h, this, new C4037c());
                                                                                            getWindow().setSoftInputMode(3);
                                                                                            this.f18757A.m6526d(new ImpDetailEvent.C3340b(this.f18452d0, 2, (ComponentVia) this.f18472x0.getValue(), (AnalyticsScreenName) this.f18473y0.getValue()));
                                                                                            this.f18757A.m6524f(AnalyticsScreenName.NOVEL_DETAIL, Long.valueOf(this.f18452d0));
                                                                                            Serializable serializableExtra = getIntent().getSerializableExtra("NOVEL");
                                                                                            this.f18453e0 = serializableExtra instanceof PixivNovel ? (PixivNovel) serializableExtra : null;
                                                                                            ActivityNovelTextBinding p0Var22 = this.f18451c0;
                                                                                            if (p0Var22 != null) {
                                                                                                p0Var22.f2666e.getViewTreeObserver().addOnGlobalLayoutListener(new ViewTreeObserver$OnGlobalLayoutListenerC4038d());
                                                                                                ActivityNovelTextBinding p0Var23 = this.f18451c0;
                                                                                                if (p0Var23 != null) {
                                                                                                    p0Var23.f22092z.setAnalyticsParameter(new AnalyticsParameter(this.f18450b0, null, 0, 6));
                                                                                                    m4793k1().m4633e();
                                                                                                    return;
                                                                                                }
                                                                                                MutabilityOwnership.m3737u("binding");
                                                                                                throw null;
                                                                                            }
                                                                                            MutabilityOwnership.m3737u("binding");
                                                                                            throw null;
                                                                                        }
                                                                                        MutabilityOwnership.m3737u("binding");
                                                                                        throw null;
                                                                                    }
                                                                                    MutabilityOwnership.m3737u("binding");
                                                                                    throw null;
                                                                                }
                                                                                MutabilityOwnership.m3737u("binding");
                                                                                throw null;
                                                                            }
                                                                            MutabilityOwnership.m3737u("binding");
                                                                            throw null;
                                                                        }
                                                                        MutabilityOwnership.m3737u("binding");
                                                                        throw null;
                                                                    }
                                                                    MutabilityOwnership.m3737u("binding");
                                                                    throw null;
                                                                }
                                                                MutabilityOwnership.m3737u("binding");
                                                                throw null;
                                                            }
                                                            MutabilityOwnership.m3737u("binding");
                                                            throw null;
                                                        }
                                                        MutabilityOwnership.m3737u("binding");
                                                        throw null;
                                                    }
                                                    MutabilityOwnership.m3737u("binding");
                                                    throw null;
                                                }
                                                MutabilityOwnership.m3737u("binding");
                                                throw null;
                                            }
                                            MutabilityOwnership.m3737u("binding");
                                            throw null;
                                        }
                                        MutabilityOwnership.m3737u("binding");
                                        throw null;
                                    }
                                    MutabilityOwnership.m3737u("binding");
                                    throw null;
                                }
                                MutabilityOwnership.m3737u("binding");
                                throw null;
                            }
                            MutabilityOwnership.m3737u("binding");
                            throw null;
                        }
                        MutabilityOwnership.m3737u("binding");
                        throw null;
                    }
                    MutabilityOwnership.m3737u("binding");
                    throw null;
                }
                MutabilityOwnership.m3737u("binding");
                throw null;
            }
            MutabilityOwnership.m3737u("binding");
            throw null;
        }
        MutabilityOwnership.m3737u("binding");
        throw null;
    }

    @Override // androidx.activity.ComponentActivity, android.app.Activity
    public boolean onCreateOptionsMenu(Menu menu) {
        MutabilityOwnership.m3745m(menu, "menu");
        getMenuInflater().inflate(R.menu.menu_novel_text, menu);
        return true;
    }

    @Override // p014ae.AdActivity, p270jp.pxv.android.activity.BaseActivity, p116e.ActivityC2727f, androidx.fragment.app.FragmentActivity, android.app.Activity
    public void onDestroy() {
        ActivityNovelTextBinding p0Var = this.f18451c0;
        if (p0Var != null) {
            p0Var.f22082G.removeJavascriptInterface("android");
            this.f18460l0.m80f();
            ActivityNovelTextBinding p0Var2 = this.f18451c0;
            if (p0Var2 != null) {
                p0Var2.f22078C.getViewTreeObserver().removeOnGlobalLayoutListener(this.f18458j0);
                ActivityNovelTextBinding p0Var3 = this.f18451c0;
                if (p0Var3 != null) {
                    p0Var3.f22078C.getViewTreeObserver().removeOnGlobalLayoutListener(this.f18459k0);
                    BottomSheetBehavior<?> bottomSheetBehavior = this.f18457i0;
                    if (bottomSheetBehavior != null) {
                        bottomSheetBehavior.m8701C(null);
                        super.onDestroy();
                        return;
                    }
                    MutabilityOwnership.m3737u("novelCaptionViewBehavior");
                    throw null;
                }
                MutabilityOwnership.m3737u("binding");
                throw null;
            }
            MutabilityOwnership.m3737u("binding");
            throw null;
        }
        MutabilityOwnership.m3737u("binding");
        throw null;
    }

    @Subscribe
    public final void onEvent(ShowNovelChapterEvent showNovelChapterEvent) {
        MutabilityOwnership.m3745m(showNovelChapterEvent, "event");
        NovelTextActionCreator j1 = m4794j1();
        Chapter chapter = showNovelChapterEvent.getChapter();
        Objects.requireNonNull(j1);
        MutabilityOwnership.m3745m(chapter, "chapter");
        j1.f19267c.mo2437b(new NovelTextAction.C6274j(chapter));
    }

    @Override // p270jp.pxv.android.activity.AbstractActivityC4151b, androidx.activity.ComponentActivity, android.app.Activity
    public boolean onOptionsItemSelected(MenuItem menuItem) {
        MutabilityOwnership.m3745m(menuItem, "item");
        if (menuItem.getItemId() != 16908332) {
            return super.onOptionsItemSelected(menuItem);
        }
        onBackPressed();
        return true;
    }

    @Override // android.app.Activity
    public boolean onPrepareOptionsMenu(Menu menu) {
        MutabilityOwnership.m3745m(menu, "menu");
        PixivNovel pixivNovel = this.f18453e0;
        if (pixivNovel == null) {
            return super.onPrepareOptionsMenu(menu);
        }
        menu.findItem(R.id.menu_marker).setIcon(m4791m1().f19277h != null ? R.drawable.ic_novel_marker_marked : R.drawable.ic_novel_marker);
        boolean a = ((MyWorkService) this.f18466r0.getValue()).m3554a(pixivNovel);
        boolean z = false;
        menu.findItem(R.id.menu_mute).setVisible(pixivNovel.visible && !a && this.f18454f0);
        boolean z2 = !C3017s.m6471e(pixivNovel);
        menu.findItem(R.id.menu_share).setVisible(pixivNovel.visible && this.f18454f0 && z2);
        menu.findItem(R.id.menu_marker).setVisible(pixivNovel.visible && this.f18454f0 && z2);
        menu.findItem(R.id.menu_section).setVisible(pixivNovel.visible && this.f18454f0 && z2 && (m4791m1().f19280k.isEmpty() ^ true));
        menu.findItem(R.id.menu_save_image).setVisible(pixivNovel.visible && this.f18454f0 && z2);
        menu.findItem(R.id.menu_setting).setVisible(pixivNovel.visible && this.f18454f0 && z2);
        menu.findItem(R.id.menu_report).setVisible(!a);
        MenuItem findItem = menu.findItem(R.id.menu_edit);
        if (pixivNovel.visible && a && this.f18454f0) {
            z = true;
        }
        findItem.setVisible(z);
        return super.onPrepareOptionsMenu(menu);
    }

    @Override // androidx.activity.ComponentActivity, p248j2.ActivityC3902g, android.app.Activity
    public void onSaveInstanceState(Bundle bundle) {
        MutabilityOwnership.m3745m(bundle, "outState");
        super.onSaveInstanceState(bundle);
        String str = m4791m1().f19281l;
        if (str != null) {
            bundle.putString("SCROLL_STATE", str);
        }
    }

    /* renamed from: p1 */
    public final void m4788p1() {
        if (!this.f18455g0) {
            ActivityNovelTextBinding p0Var = this.f18451c0;
            if (p0Var != null) {
                NovelSettingView novelSettingView = p0Var.f22080E;
                MutabilityOwnership.m3746l(novelSettingView, "binding.novelSettingView");
                if (novelSettingView.getVisibility() == 0) {
                    ActivityNovelTextBinding p0Var2 = this.f18451c0;
                    if (p0Var2 != null) {
                        C4864c.m3547b(p0Var2.f22090x, 100);
                        ActivityNovelTextBinding p0Var3 = this.f18451c0;
                        if (p0Var3 != null) {
                            C4864c.m3547b(p0Var3.f22081F, 100);
                            this.f18455g0 = true;
                            ActivityNovelTextBinding p0Var4 = this.f18451c0;
                            if (p0Var4 != null) {
                                NovelSettingView novelSettingView2 = p0Var4.f22080E;
                                float[] fArr = new float[1];
                                if (p0Var4 != null) {
                                    fArr[0] = -((float) novelSettingView2.getHeight());
                                    ObjectAnimator ofFloat = ObjectAnimator.ofFloat(novelSettingView2, "translationY", fArr);
                                    ofFloat.setDuration(300L);
                                    ofFloat.addListener(new C4036b());
                                    ofFloat.start();
                                    return;
                                }
                                MutabilityOwnership.m3737u("binding");
                                throw null;
                            }
                            MutabilityOwnership.m3737u("binding");
                            throw null;
                        }
                        MutabilityOwnership.m3737u("binding");
                        throw null;
                    }
                    MutabilityOwnership.m3737u("binding");
                    throw null;
                }
                return;
            }
            MutabilityOwnership.m3737u("binding");
            throw null;
        }
    }

    @JavascriptInterface
    public final void postMessage(String str) {
        MutabilityOwnership.m3745m(str, "message");
        NovelTextActionCreator j1 = m4794j1();
        Objects.requireNonNull(j1);
        try {
            NovelViewerMessage fVar = (NovelViewerMessage) new C4929j().m3440b(str, NovelViewerMessage.class);
            NovelInfo ready = fVar.getReady();
            if (ready != null) {
                j1.f19267c.mo2437b(new NovelTextAction.C6272h(ready));
            }
            ScrollInfo scroll = fVar.getScroll();
            if (scroll != null) {
                j1.f19267c.mo2437b(new NovelTextAction.C6273i(scroll));
            }
            UiState updateUi = fVar.getUpdateUi();
            if (updateUi != null) {
                j1.f19267c.mo2437b(new NovelTextAction.C6280p(updateUi));
            }
            Content openContent = fVar.getOpenContent();
            if (openContent != null) {
                j1.f19267c.mo2437b(new NovelTextAction.C6271g(openContent));
            }
            C5846e viewerEvent = fVar.getViewerEvent();
            if (viewerEvent != null) {
                PixivAnalytics eVar = j1.f19268d;
                String action = viewerEvent.getAction();
                String label = viewerEvent.getLabel();
                Objects.requireNonNull(eVar);
                MutabilityOwnership.m3745m(action, "action");
                FirebaseEventLogger cVar = eVar.f13817a;
                Objects.requireNonNull(cVar);
                Bundle bundle = new Bundle();
                bundle.putString("category", "Viewer");
                bundle.putString("action", action);
                if (label != null) {
                    bundle.putString("label", label);
                }
                cVar.m6296f();
                Timber.f23100a.mo3528a("%s %s", "old_event", bundle.toString());
                cVar.f14642a.f10008a.zzx("old_event", bundle);
            }
            String crash = fVar.getCrash();
            if (crash != null) {
                Timber.f23100a.mo3515o(crash, new Object[0]);
            }
            Map<String, String> faEvent = fVar.getFaEvent();
            if (faEvent != null) {
                j1.f19267c.mo2437b(new FirebaseAnalyticsAction(new NovelViewerEvent(faEvent)));
            }
        } catch (Exception unused) {
            Timber.f23100a.mo3528a(str, new Object[0]);
        }
    }

    /* renamed from: q1 */
    public final void m4787q1(PixivNovel pixivNovel) {
        MutabilityOwnership.m3745m(pixivNovel, "novel");
        if (!this.f18462n0) {
            this.f18462n0 = true;
            Disposable q = PixivAccountManager.m5511e().m5514b().m989l(new C7456k(this.f18452d0, 5)).m986o(AndroidSchedulers.m334a()).m984q(new C0190y4(this, pixivNovel, 1), new C6830b(this, 2), Functions.f5386c, Functions.f5387d);
            CompositeDisposable aVar = this.f18460l0;
            MutabilityOwnership.m3744n(aVar, "compositeDisposable");
            aVar.mo82c(q);
        }
    }

    /* renamed from: r1 */
    public final void m4786r1() {
        NovelTextActionCreator j1 = m4794j1();
        long j = this.f18452d0;
        PixivNovel pixivNovel = this.f18453e0;
        ActivityNovelTextBinding p0Var = this.f18451c0;
        if (p0Var != null) {
            int height = p0Var.f22090x.getHeight();
            ActivityNovelTextBinding p0Var2 = this.f18451c0;
            if (p0Var2 != null) {
                int height2 = p0Var2.f22083q.getHeight();
                j1.f19267c.mo2437b(NovelTextAction.C6276l.f26850a);
                C1124a.m10167y(Preconditions.m9807K(j1), null, 0, new p524tk.NovelTextActionCreator(pixivNovel, j, j1, height, height2, null), 3, null);
                return;
            }
            MutabilityOwnership.m3737u("binding");
            throw null;
        }
        MutabilityOwnership.m3737u("binding");
        throw null;
    }

    /* renamed from: s1 */
    public final void m4785s1(PixivUser pixivUser) {
        if (!this.f18461m0) {
            this.f18461m0 = true;
            Disposable q = PixivRequest.m5806k(pixivUser.f19078id).m986o(AndroidSchedulers.m334a()).m984q(new C0168u5(this, pixivUser, 0), new C0147r4(this, 1), Functions.f5386c, Functions.f5387d);
            CompositeDisposable aVar = this.f18460l0;
            MutabilityOwnership.m3744n(aVar, "compositeDisposable");
            aVar.mo82c(q);
        }
    }

    /* JADX WARN: Removed duplicated region for block: B:102:0x01e0  */
    /* JADX WARN: Removed duplicated region for block: B:103:0x01ea  */
    /* JADX WARN: Removed duplicated region for block: B:84:0x0176  */
    /* JADX WARN: Removed duplicated region for block: B:93:0x01a4  */
    /* renamed from: t1 */
    /* Code decompiled incorrectly, please refer to instructions dump */
    public final void m4784t1(p449qk.Content r11) {
        /*
        // Method dump skipped, instructions count: 777
        */
        throw new UnsupportedOperationException("Method not decompiled: p270jp.pxv.android.activity.NovelTextActivity.m4784t1(qk.a):void");
    }

    /* renamed from: u1 */
    public final void m4783u1() {
        PixivNovel pixivNovel = this.f18453e0;
        if (pixivNovel != null) {
            this.f18462n0 = false;
            m4787q1(pixivNovel);
        }
    }

    /* renamed from: v1 */
    public final void m4782v1(int i) {
        ActivityNovelTextBinding p0Var = this.f18451c0;
        if (p0Var != null) {
            TextView textView = p0Var.f22081F;
            Object obj = ContextCompat.f19963a;
            textView.setTextColor(ContextCompat.C4473d.m4257a(this, i));
            return;
        }
        MutabilityOwnership.m3737u("binding");
        throw null;
    }

    /* renamed from: w1 */
    public final void m4781w1() {
        ActivityNovelTextBinding p0Var = this.f18451c0;
        if (p0Var == null) {
            MutabilityOwnership.m3737u("binding");
            throw null;
        } else if (p0Var.f22092z.m4497u()) {
            ActivityNovelTextBinding p0Var2 = this.f18451c0;
            if (p0Var2 != null) {
                p0Var2.f22092z.m8520r();
            } else {
                MutabilityOwnership.m3737u("binding");
                throw null;
            }
        } else {
            ActivityNovelTextBinding p0Var3 = this.f18451c0;
            if (p0Var3 != null) {
                p0Var3.f22092z.m8527k();
            } else {
                MutabilityOwnership.m3737u("binding");
                throw null;
            }
        }
    }

    /* renamed from: x1 */
    public final void m4780x1() {
        ActivityNovelTextBinding p0Var = this.f18451c0;
        if (p0Var != null) {
            C4864c.m3547b(p0Var.f22090x, 100);
            ActivityNovelTextBinding p0Var2 = this.f18451c0;
            if (p0Var2 != null) {
                C4864c.m3547b(p0Var2.f22083q, 100);
                m4781w1();
                return;
            }
            MutabilityOwnership.m3737u("binding");
            throw null;
        }
        MutabilityOwnership.m3737u("binding");
        throw null;
    }

    @Subscribe
    public final void onEvent(ShowNovelInfoEvent showNovelInfoEvent) {
        MutabilityOwnership.m3745m(showNovelInfoEvent, "event");
        m4780x1();
    }

    @Subscribe
    public final void onEvent(ShowCommentListEvent showCommentListEvent) {
        MutabilityOwnership.m3745m(showCommentListEvent, "event");
        PixivNovel pixivNovel = this.f18453e0;
        if (pixivNovel != null && pixivNovel.f19079id == showCommentListEvent.getWork().f19079id) {
            Intent intent = new Intent(this, CommentListActivity.class);
            intent.putExtra("WORK", pixivNovel);
            startActivityForResult(intent, 111);
        }
    }

    @Subscribe
    public final void onEvent(ShowCommentInputEvent showCommentInputEvent) {
        MutabilityOwnership.m3745m(showCommentInputEvent, "event");
        PixivNovel pixivNovel = this.f18453e0;
        if (pixivNovel != null && pixivNovel.f19079id == showCommentInputEvent.getWork().f19079id) {
            AccountUtils.m3552b(this, this.f18460l0, new C7458m(this, pixivNovel, showCommentInputEvent, 1));
        }
    }

    @Subscribe
    public final void onEvent(UpdateMuteEvent updateMuteEvent) {
        MutabilityOwnership.m3745m(updateMuteEvent, "event");
        PixivNovel pixivNovel = this.f18453e0;
        if (pixivNovel != null && pixivNovel.user.f19078id != PixivAccountManager.m5511e().f16499e) {
            if (MuteManager.f23061h.m3539d(pixivNovel)) {
                ActivityNovelTextBinding p0Var = this.f18451c0;
                if (p0Var != null) {
                    p0Var.f22077B.m4595d(InfoType.MUTED_CONTENTS, null);
                    ActivityNovelTextBinding p0Var2 = this.f18451c0;
                    if (p0Var2 != null) {
                        p0Var2.f22092z.m8527k();
                        ActivityNovelTextBinding p0Var3 = this.f18451c0;
                        if (p0Var3 != null) {
                            TextView textView = p0Var3.f22081F;
                            MutabilityOwnership.m3746l(textView, "binding.pageCounterTextView");
                            textView.setVisibility(8);
                        } else {
                            MutabilityOwnership.m3737u("binding");
                            throw null;
                        }
                    } else {
                        MutabilityOwnership.m3737u("binding");
                        throw null;
                    }
                } else {
                    MutabilityOwnership.m3737u("binding");
                    throw null;
                }
            } else {
                ActivityNovelTextBinding p0Var4 = this.f18451c0;
                if (p0Var4 != null) {
                    p0Var4.f22077B.m4598a();
                    m4781w1();
                    ActivityNovelTextBinding p0Var5 = this.f18451c0;
                    if (p0Var5 != null) {
                        TextView textView2 = p0Var5.f22081F;
                        MutabilityOwnership.m3746l(textView2, "binding.pageCounterTextView");
                        textView2.setVisibility(0);
                    } else {
                        MutabilityOwnership.m3737u("binding");
                        throw null;
                    }
                } else {
                    MutabilityOwnership.m3737u("binding");
                    throw null;
                }
            }
            invalidateOptionsMenu();
            PixivUser pixivUser = pixivNovel.user;
            MutabilityOwnership.m3746l(pixivUser, "novel.user");
            m4785s1(pixivUser);
        }
    }

    @Subscribe
    public final void onEvent(UpdateFollowEvent updateFollowEvent) {
        MutabilityOwnership.m3745m(updateFollowEvent, "event");
        PixivNovel pixivNovel = this.f18453e0;
        if (pixivNovel != null) {
            long userId = updateFollowEvent.getUserId();
            PixivUser pixivUser = pixivNovel.user;
            long j = pixivUser.f19078id;
            if (userId == j && pixivUser.isFollowed) {
                Disposable q = PixivRequest.m5804m(j).m986o(AndroidSchedulers.m334a()).m984q(new Consumer(j) { // from class: ae.w5

                    /* renamed from: b */
                    public final /* synthetic */ long f645b;

                    {
                        this.f645b = r2;
                    }

                    @Override // p013ad.Consumer
                    /* renamed from: d */
                    public final void mo1150d(Object obj) {
                        NovelTextActivity novelTextActivity = NovelTextActivity.this;
                        long j2 = this.f645b;
                        PixivResponse pixivResponse = (PixivResponse) obj;
                        NovelTextActivity.C4035a aVar = NovelTextActivity.f18449z0;
                        MutabilityOwnership.m3745m(novelTextActivity, "this$0");
                        MutabilityOwnership.m3745m(pixivResponse, "response");
                        List<PixivUserPreview> list = pixivResponse.userPreviews;
                        MutabilityOwnership.m3746l(list, "response.userPreviews");
                        List b = C3017s.m6474b(list);
                        if (!((ArrayList) b).isEmpty()) {
                            ActivityNovelTextBinding p0Var = novelTextActivity.f18451c0;
                            if (p0Var != null) {
                                CoordinatorLayout coordinatorLayout = p0Var.f22085s;
                                MutabilityOwnership.m3746l(coordinatorLayout, "binding.coordinatorLayout");
                                C5410r k = C5410r.m3327k(coordinatorLayout, j2, b, novelTextActivity.f18450b0, Long.valueOf(novelTextActivity.f18452d0));
                                novelTextActivity.f18463o0 = k;
                                k.mo8480h();
                                return;
                            }
                            MutabilityOwnership.m3737u("binding");
                            throw null;
                        }
                    }
                }, C6832d.f29061c, Functions.f5386c, Functions.f5387d);
                MutabilityOwnership.m3746l(q, "createGetUserRelatedObse…          }\n            )");
                CompositeDisposable aVar = this.f18460l0;
                MutabilityOwnership.m3744n(aVar, "compositeDisposable");
                aVar.mo82c(q);
            }
        }
    }

    @Subscribe
    public final void onEvent(RemoveCommentEvent removeCommentEvent) {
        MutabilityOwnership.m3745m(removeCommentEvent, "event");
        FragmentManager K0 = m11131K0();
        MutabilityOwnership.m3746l(K0, "supportFragmentManager");
        PixivComment comment = removeCommentEvent.getComment();
        MutabilityOwnership.m3746l(comment, "event.comment");
        PixivWork work = removeCommentEvent.getWork();
        MutabilityOwnership.m3746l(work, "event.work");
        C1124a.m10194T(this, K0, new RemoveCommentConfirmedEvent(comment, work), new EventNone());
    }

    @Subscribe
    public final void onEvent(RemoveCommentConfirmedEvent removeCommentConfirmedEvent) {
        MutabilityOwnership.m3745m(removeCommentConfirmedEvent, "event");
        C1124a.m10210D(this, this.f18460l0, removeCommentConfirmedEvent, new C0160t5(this, 0));
    }
}
